/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.monVehicule.dao.ajouter;

import fr.monVehicule.entite.Marque;
import java.util.List;
import org.hibernate.Query;

/**
 *
 * @author David
 */
public class MarqueDAO extends DAO<Marque> {

    public MarqueDAO() {
        super(Marque.class);
    }

    public List<Marque> findAll() {
        String SQL_QUERY = "FROM Marque";
        Query query = session.createQuery(SQL_QUERY);
        List<Marque> list = query.list();
        session.close();
        return list;
    }
}
